<?php slot('site_subtitle') ?>
  <h2>
    Cele mai mari <strong>reduceri din <?php echo $city->getName() ?></strong> adunate intr-un singur loc!
    <br />
    Alege si fa-ti un <strong>cadou</strong> tie sau cuiva drag!
    <div class="tip"></div>
  </h2>
<?php end_slot(); ?>

<?php $i = 0; ?>
<?php foreach($pager->getResults() as $offer): ?>
  <?php $i++ ?>
  <?php include_partial('index/offer', array('offer' => $offer, 'promo' => $offer->getPromo())) ?>
  <?php if($i == 1): ?>
    <?php include_partial('index/ad1') ?>
  <?php endif; ?>
<?php endforeach; ?>


<?php if ($pager->haveToPaginate()): ?>
  <div class="pager clearfix">
    <?php echo link_to('&laquo;', $route_name.'?page='.$pager->getFirstPage().'&city_name='.Utils::slugify($city_name).'&category_name='.$sf_request->getParameter('category_name')) ?>
    <?php echo link_to('&lt;', $route_name.'?page='.$pager->getPreviousPage().'&city_name='.Utils::slugify($city_name).'&category_name='.$sf_request->getParameter('category_name')) ?>
    <?php $links = $pager->getLinks(); foreach ($links as $page): ?>
      <?php echo ($page == $pager->getPage()) ? link_to($page, $route_name.'?page='.$page.'&city_name='.Utils::slugify($city_name).'&category_name='.$sf_request->getParameter('category_name'), array('class' => 'selected')) : link_to($page, $route_name.'?page='.$page.'&city_name='.Utils::slugify($city_name).'&category_name='.$sf_request->getParameter('category_name')) ?>
    <?php endforeach ?>
    <?php echo link_to('&gt;', $route_name.'?page='.$pager->getNextPage().'&city_name='.Utils::slugify($city_name).'&category_name='.$sf_request->getParameter('category_name')) ?>
    <?php echo link_to('&raquo;', $route_name.'?page='.$pager->getLastPage().'&city_name='.Utils::slugify($city_name).'&category_name='.$sf_request->getParameter('category_name')) ?>
  </div>
<?php endif ?>
